package main

import "fmt"

func hammingDistance(x int, y int) int {
	strx := fmt.Sprintf("%032b", x)
	stry := fmt.Sprintf("%032b", y)
	n := 0
	for i := 0; i < 32; i++ {
		if strx[i] != stry[i] {
			n++
		}
	}
	return n
}

func main() {
	a := 3
	b := 1
	fmt.Println(hammingDistance(a, b))
}
